package com.ihrm.system.service;

import com.ihrm.common.entity.PageResult;
import com.ihrm.common.entity.Result;
import com.ihrm.domain.system.Role;
import com.ihrm.domain.system.RolePermission;

import java.util.List;
import java.util.Map;

public interface RoleService {
    Role getRoleById(String id);

    PageResult pageFind(Integer page, Integer pagesize, Role role);

    Integer updateRole(Role role);

    Integer delRoleById(String id);

    Integer insert(Role role);

    List<Role> findAll(Role role);

    void assignPerms(Map<String, Object> map);
}
